import request from '@/utils/request'

export function add(url,data) {
  return request({
    url: url + '/add',
    method: 'POST',
    data
  })
}

export function update(url,data) {
  return request({
    url: url + '/update',
    method: 'POST',
    data
  })
}

export function del(url,data) {
  return request({
    url: url + '/delete',
    method: 'POST',
    data
  })
}

export function page(url,data) {
  return request({
    url: url + '/page',
    method: 'POST',
    data
  })
}

export function list(url,data) {
  return request({
    url: url + '/list',
    method: 'POST',
    data
  })
}

export function getById(url,data) {
  return request({
    url: url + '/getById',
    method: 'POST',
    data
  })
}